using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace HermesPortal
{
    public class ConfigSection : ConfigurationSection
    {
        [ConfigurationProperty("prop1")]
        public string Prop1
        { get { return (string)base["prop1"]; } }

        [ConfigurationProperty("contactInfo")]
        public ContactInfoElement ContactInfo
        {  get { return (ContactInfoElement)base["contactInfo"]; } }

    }

    public class ContactInfoElement : ConfigurationElement
    {
        [ConfigurationProperty("email")]
        public string Email
        {  get {return (string) base["email"]; }  }

        [ConfigurationProperty("emailCC")]
        public string EmailCC
        { get { return (string)base["emailCC"]; } }

        [ConfigurationProperty("projectRedcapURL")]
        public string ProjectRedcapURL
        {  get {return (string) base["projectRedcapURL"]; }  }
       
    }
}